package com.example.demo.util;

import lombok.Data;

import java.io.Serializable;

@Data
public class ReturnEntity<T> implements Serializable {
    private String code;
    private String msg;
    private T data;
    private String timestamp;

    public ReturnEntity(String code, String msg, String timestamp) {
        this.code = code;
        this.msg = msg;
        this.timestamp = timestamp;
    }

    public ReturnEntity(String code, String msg, T data, String timestamp) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.timestamp = timestamp;
    }
}
